// 商品请求封装
import instance from '@/utils/request'

// 新增
const insertGoods = (goods) => {
  return instance.post('/goods', goods)
}

// 删除
const deleteGoodsById = (id) => {
  return instance.delete(`/goods/${id}`)
}

// 修改
const updateGoods = (goods) => {
  return instance.put('/goods', goods)
}

export { insertGoods, deleteGoodsById, updateGoods }
